package com.example.library.controller;

import com.example.library.common.Result;
import com.example.library.entity.Compensate;
import org.springframework.web.bind.annotation.*;
import org.springframework.stereotype.Controller;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 胡绍杆
 * @since 2022-06-16
 */
@RestController
@RequestMapping("/compensate")
public class CompensateController {
    @ResponseBody
    @PostMapping("/submitInfo")
    public Result submitInfo(@RequestBody Compensate compensate){
        System.out.println("1111111111111111111111111111111111111111111111111111111111111");
        System.out.println(compensate.toString());
        return Result.success();
    }

}
